package com.example.spring.boot.repository.user;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface UserMapper {

    @Insert("INSERT INTO user(user_name,password,create_time) VALUES(#{userName}, #{password}, #{createTime})")
    @Options(useGeneratedKeys = true, keyProperty = "userId")
    public long createUser(UserEntity userEntity);
}
